package org.ovirt.microvirt.services.plan;

import java.util.List;

import org.ovirt.microvirt.beans.plan.Requirement;
import org.ovirt.microvirt.services.RequirementService;
import org.springframework.orm.jpa.support.JpaDaoSupport;

public class RequirementServiceImpl extends JpaDaoSupport implements RequirementService {

	@SuppressWarnings("unchecked")
	@Override
	public List<Requirement> list() {
		return getJpaTemplate().find("select r from "+Requirement.class.getName() + " r");
	}

	@Override
	public Requirement persist(Requirement requirement) {
		// TODO Auto-generated method stub
		return null;
	}
	
}
